using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

public class DBComboBox : ComboBox
{
    public DBComboBox(DGVComboBoxColumn Creator)
        : base()
    {
        this.DataSource = Creator.DataSource;
        this.DisplayMember = Creator.DisplayMember;
        this.ValueMember = Creator.ValueMember;
        this.DataBindings.Add(new Binding("SelectedValue", Creator.DataGridView.DataSource, Creator.DataPropertyName, true));
    }
}
